package com.ruoyi.system.service;

import com.ruoyi.system.domain.TGoods;
import com.ruoyi.system.domain.TestCourse;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;


public interface TGoodsService {

    /*分页查询商品*/
    public List<TGoods> selectGoodsList(TGoods goods);

    /*查询商品列表*/
    public List<TGoods> selectGoodsAll();

    /*通过商品id查询商品信息*/
    public TGoods selectGoodsById(Long goodsId);


    /**
     * 校验名称
     *
     */
    public boolean checkGoodsNameUnique(TGoods goods);
    //public boolean checkGoodsCodeUnique(TGoods goods);



    /*删除信息*/
    public int deleteGoodsById(Long goodsId);

    /*批量删除信息*/
    public int deleteGoodsByIds(Long[] goodsIds);

    /*新增信息*/
    public int insertGoods(TGoods goods);

    /*修改保持信息*/
    public int updateGoods(TGoods goods);
}

